package day03;

import java.util.Scanner;

public class IfElseDemo {
    public static void main(String[] args) {
        double price = 600;
        if (price>=500){
            price*=0.8;
        }  else{
            price*=0.9;
        }
        System.out.println("最终消费金额为："+price);
        System.out.println("请输入");
        Scanner p = new Scanner(System.in);
        int num =p.nextInt();
        if(num%2==0){
            System.out.println(num+"是偶数");
        }else{
            System.out.println(num+"是奇数");
        }
    }
}
